package io.dshubs.archives.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.dshubs.commons.mybatis.entity.BaseTenantEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 全宗信息表
 * </p>
 *
 * @author tan
 * @since 2021-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("archive_base_info")
public class ArchiveBaseInfo extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;

    @TableField("dept_id")
    private Long deptId;

    @TableField("code")
    @ApiModelProperty("全宗号")
    private String code;


    @TableField("name")
    @ApiModelProperty("全宗名称")
    private String name;


    @TableField("sort")
    @ApiModelProperty("排序")
    private Long sort;


    @TableField("updater")
    @ApiModelProperty("更新者")
    private Long updater;


    @TableField("update_date")
    @ApiModelProperty("更新时间")
    private Date updateDate;

    @TableField(exist = false)
    private String tenantName;

    @TableField(exist = false)
    private String ruleArchiveId;

}
